package com.example.his.api.front.service;

import com.fasterxml.jackson.databind.node.ObjectNode;

public interface PaymentService {
    public ObjectNode unifiedOrder(String outTradeNo, int total,
                                   String desc, String notifyUrl,
                                   String timeExpire);


    /**
     * 获取支付结果
     */
    public String searchPaymentResult(String outTradeNo);

    /**
     * 退款
     * @param transactionId 流水id
     * @param refund    退款总金额
     * @param total      订单金额
     * @param notifyUrl       退款回调地址
     */
    public String refund(String transactionId, Integer refund, Integer total, String notifyUrl);


    /**
     * 退款查询
     * @param outRefundNo
     * @return
     */
    public String searchRefundResult(String outRefundNo);
}
